package com.yfp.client.mapper;

import com.yfp.client.domain.ActivitySignIns;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 *
 * @description 针对表【activity_sign_ins(打卡管理主表)】的数据库操作Mapper
 * @createDate 2025-01-03 17:46:13
 * @Entity com.yfp.client.domain.ActivitySignIns
 */
public interface ActivitySignInsMapper extends BaseMapper<ActivitySignIns> {

    /**
     * 获取正在进行的打卡活动
     *
     * @param status
     * @param cityName
     * @return
     */
    Long getOngoingActivitySignIns(@Param("status") Integer status, @Param("cityName") String cityName);

    /**
     * 根据活动id和城市名查询活动
     *
     * @param activitySignInsId
     * @param cityName
     * @return
     */
    Long selectByIdAndCityName(@Param("activitySignInsId") Long activitySignInsId, @Param("cityName") String cityName);
}




